﻿@model IEnumerable<TCM.Student>

@{
    ViewBag.Title = "Index";
}

<link href="~/Content/DataTableNet/jquery.dataTables.css" rel="stylesheet" />

<div class="IndexBack">
    @Html.ActionLink(" ", "../")
</div>
<div class="toolbar">
    @Html.ActionLink("Create New", "Create")
</div>
<table class="grdTable">
<thead >
    <tr>
      @*  <th>
            @Html.DisplayNameFor(model => model.StudentID)
        </th>*@
        <th>
            @Html.DisplayNameFor(model => model.Name)
        </th>
       @* <th>
            @Html.DisplayNameFor(model => model.NameAr)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.NATIONALID)
        </th>*@
        <th>
            @Html.DisplayNameFor(model => model.Email1)
        </th>       
        <th>
            @Html.DisplayNameFor(model => model.Mobile1)
        </th>       
         <th>
            @Html.DisplayNameFor(model => model.Address)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Phone)
        </th>       
     
        <th></th>
    </tr>
    </thead>
@foreach (var item in Model) {
    <tr>
       @* <td>
            @Html.DisplayFor(modelItem => item.StudentID)
        </td>*@
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
        @*<td>
            @Html.DisplayFor(modelItem => item.NameAr)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.NATIONALID)
        </td>*@
        <td>
            @Html.DisplayFor(modelItem => item.Email1)
        </td>        
        <td>
            @Html.DisplayFor(modelItem => item.Mobile1)
        </td>        
        <td>
            @Html.DisplayFor(modelItem => item.Address)
        </td>
     @*   <td>
            @Html.DisplayFor(modelItem => item.ADDRESSAR)
        </td>*@
        <td>
            @Html.DisplayFor(modelItem => item.Phone)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new {  id =  item.StudentID }) |
          @*  @Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |*@
            @Html.ActionLink("Delete", "Delete", new { id = item.StudentID })
        </td>
    </tr>
}

</table>
